package edu.sctu.practice.class02.shuqiqi.assign.assign02;

/**
 * Created by admin on 2015/10/10.
 */
public class RationalMain {

    public static void main(String[] args) {

        Rational rational = new Rational(12, 5);

        System.out.println("a与b的和为：" + rational.add());

        System.out.println("a与b的差为：" + rational.subtract());

        System.out.println("a与b的积为：" + rational.multiply());

        System.out.println("a与b的商为：" + rational.divide());
    }
}
